package cn.buk.flight.model;

import cn.buk.common.util.DateUtil;
import java.util.Date;

/**
 * 某日航班最低价
 * @author Administrator
 *
 */
public class FlightLowestPrice {

	private String depCity;
	private String depCityName;
	private String arrPort;
	private String arrCity;
	private String arrCityName;
	private Date depDate;
	private int scny;
	private String  subclassDesc;
	private int dayOfWeek;
	private String dayOfWeekDesc;
	

	/**
	 * @return the depDate
	 */
	public Date getDepDate() {
		return depDate;
	}
	/**
	 * @param depDate the depDate to set
	 */
	public void setDepDate(Date depDate) {
		this.depDate = depDate;
	}
	/**
	 * @return the scny
	 */
	public int getScny() {
		return scny;
	}
	/**
	 * @param scny the scny to set
	 */
	public void setScny(int scny) {
		this.scny = scny;
	}
	/**
	 * @return the depCity
	 */
	public String getDepCity() {
		return depCity;
	}
	/**
	 * @param depCity the depCity to set
	 */
	public void setDepCity(String depCity) {
		this.depCity = depCity;
	}
	/**
	 * @return the arrCity
	 */
	public String getArrCity() {
		return arrCity;
	}
	/**
	 * @param arrCity the arrCity to set
	 */
	public void setArrCity(String arrCity) {
		this.arrCity = arrCity;
	}
	public int getDayOfWeek() {
		if (dayOfWeek == 0) {
			dayOfWeek = DateUtil.getDayOfWeek(getDepDate());
		}
		return dayOfWeek;
	}
	public void setDayOfWeek(int dayOfWeek) {
		this.dayOfWeek = dayOfWeek;
	}
	public String getDayOfWeekDesc() {
		if (dayOfWeekDesc == null) {
			dayOfWeekDesc = DateUtil.getDayOfWeekDesc(getDepDate());
		}
		return dayOfWeekDesc;
	}
	public void setDayOfWeekDesc(String dayOfWeekDesc) {
		this.dayOfWeekDesc = dayOfWeekDesc;
	}

	/**
	 * @return the subclassDesc
	 */
	public String getSubclassDesc() {
		return subclassDesc;
	}
	/**
	 * @param subclassDesc the subclassDesc to set
	 */
	public void setSubclassDesc(String subclassDesc) {
		this.subclassDesc = subclassDesc;
	}
	/**
	 * @return the depCityName
	 */
	public String getDepCityName() {
		return depCityName;
	}
	/**
	 * @param depCityName the depCityName to set
	 */
	public void setDepCityName(String depCityName) {
		this.depCityName = depCityName;
	}
	/**
	 * @return the arrCityName
	 */
	public String getArrCityName() {
		if (arrCityName == null) {
      return arrCity;
    }
		return arrCityName;
	}
	/**
	 * @param arrCityName the arrCityName to set
	 */
	public void setArrCityName(String arrCityName) {
		this.arrCityName = arrCityName;
	}

    public String getArrPort() {
        return arrPort;
    }

    public void setArrPort(String arrPort) {
        this.arrPort = arrPort;
    }
}
